import java.util.Scanner;

/*
    整除序列
 */
public class DivisibleSequence {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        sc.close();
        while(n > 0){
            System.out.print(n + " ");
            n = n/2;
        }
    }
}
